#ifndef SHAPE_NOTE_H
#define SHAPE_NOTE_H
#include "resizableshape.h"

/**
 * @class NoteShape
 * Представляет собой элемент Comment языка UML.
 */
class NoteShape : public ResizableShape
{
public:
	NoteShape (QGraphicsItem *parent = NULL);
	NoteShape (const QPointF &pos, QGraphicsItem *parent = NULL);
	virtual void setTitle (const QString &newtext);
	virtual const QString &title() const;
	virtual void setDescription (const QString &newtext);
	virtual const QString &description() const;
	virtual void editProperties();
	virtual NoteShape *clone() const;
protected:
	virtual void paint (QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget);
	virtual QPainterPath shape() const;
private:
	QString _title;
	QString _description;
};


#endif // SHAPE_NOTE_H
